package com.jlcindia.struts2;

import java.util.*;

import com.opensymphony.xwork2.ActionSupport;

public class HomeAction extends ActionSupport {
	boolean flag1=false;
	boolean flag2=false;
	List<String> courses;
	List<String> colors;
	public HomeAction(){
		courses=new ArrayList<String>();
		courses.add("java");
		courses.add("jdbc");
		courses.add("jsp");
		courses.add("EJB");
		courses.add("Hibernate");
		courses.add("JSF");
		courses.add("struts1.x");
		courses.add("XML");
		
		colors=new ArrayList<String>();
		colors.add("red");
		colors.add("yellow");
		colors.add("green");
		colors.add("pink");
	}
	
	public String execute()throws Exception{
		return "success";
	}

	public boolean isFlag1() {
		return flag1;
	}

	public void setFlag1(boolean flag1) {
		this.flag1 = flag1;
	}

	public boolean isFlag2() {
		return flag2;
	}

	public void setFlag2(boolean flag2) {
		this.flag2 = flag2;
	}

	public List<String> getCourses() {
		return courses;
	}

	public void setCourses(List<String> courses) {
		this.courses = courses;
	}

	public List<String> getColors() {
		return colors;
	}

	public void setColors(List<String> colors) {
		this.colors = colors;
	}
	
	

}
